<section class="main-content">
    <div class="main-content__inner">
        <div class="main-content__right">  
            <?php $this->widget('widgets.Content.ArticleMenu'); ?>
        </div>
        <div class="main-content__left">
            <div class="title-wrap">    
                <h1 class="global-small-title">Отзывы</h1>
                <a href="#feedback-form" class="blue-button show-popup">Добавить отзыв</a>
            </div>
            <ul class="feedback-list">
                <?php foreach ($models as $model): ?>
                    <li class="feedback-list__item positively">
<!--                        <div class="feedback-list__photo">
                            <img src="images/src/feedback-list__photo.jpg" alt="feedback-list__photo" />
                        </div>-->
                        <div class="feedback-list__description">
                            <div class="feedback-list__top-panel">
                                <span class="feedback-list__name"><?php echo $model['page_title']; ?></span>
                                <?php
                                $this->widget('CStarRating', array(
                                    //'model'=>$model,
                                    //'attribute'=>'rating',
                                    'name' => 'rating1' . $model['page_id'],
                                    'minRating' => 1,
                                    'maxRating' => 5,
                                    'value' => (int) $model['page_short_content'],
                                    'readOnly' => true,
                                ));
                                ?>
                                <span class="feedback-list__date"><?php echo date('d.m.Y', $model['page_date']); ?></span>
                            </div>
                            <p>
                                <?php echo $model['page_full_content']; ?>
                            </p>
                        </div>
                    </li>
                <?php endforeach; ?>
            </ul> 
            <nav class="page-navi">
                <?php
                $this->widget('CLinkPager', array(
                    'pages' => $pages,
                    'header' => '',
                    'cssFile' => Yii::app()->request->baseUrl . '/css/pager.css',
                    'firstPageLabel' => '',
                    'prevPageLabel' => '<span class="hide">previous</span>',
                    'nextPageLabel' => '<span class="hide">next</span>',
                    'lastPageLabel' => '',
                ));
                ?>
            </nav> 
        </div>  
    </div>   
</section> 
<?php $this->widget('widgets.Forms.Review'); ?>